package com.caigou.comm.base.ext

import com.caigou.comm.R

/**
 * @author #Suyghur.
 * Created on 2021/12/12
 */
fun dareTypeName(dareTypeId: Int): String {
    return when (dareTypeId) {
        1 -> "特肖"
        2 -> "特码"
        3 -> "平码"
        4 -> "1码"
        5 -> "4码"
        6 -> "8码"
        7 -> "12码"
        8 -> "一码"
        9 -> "一肖"
        10 -> "二肖"
        11 -> "三肖"
        12 -> "六肖"
        13 -> "九肖"
        14 -> "5码"
        15 -> "10码"
        16 -> "20码"
        17 -> "35码"
        18 -> "平特一肖"
        19 -> "平特一尾"
        20 -> "五不中"
        21 -> "七不中"
        22 -> "三中一"
        23 -> "二连肖"
        24 -> "二连尾"
        25 -> "单双"
        26 -> "大小"
        27 -> "家野"
        28 -> "双波"
        29 -> "合单双"
        30 -> "三头"
        31 -> "六尾"
        32 -> "三行"
        33 -> "七尾"
        34 -> "杀一肖"
        35 -> "杀五码"
        36 -> "杀一头"
        37 -> "杀一尾"
        38 -> "杀一段"
        39 -> "杀一行"
        40 -> "杀二尾"
        41 -> "杀二肖"
        42 -> "半杀波"
        else -> ""
    }
}

fun dareTypeBackgroundId(dareTypeId: Int): Int {
    return when (dareTypeId) {
        11, 12, 13 -> R.drawable.comm_te_xiao_bg
        14, 15, 16, 17 -> R.drawable.comm_te_wei_bg
        18, 19, 20, 21, 22, 23, 24 -> R.drawable.comm_ping_te_bg
        25, 26, 27, 28, 29 -> R.drawable.comm_ban_shu_bg
        30, 31, 32, 33 -> R.drawable.comm_other_bg
        34, 35, 36, 37, 38, 39, 40, 41, 42 -> R.drawable.comm_sha_bang_bg
        else -> 0
    }
}